package com.traffic.fuwu.util;
  

/**  
 * ClassName:ToolUtil <br/>  
 * Function: TODO ADD FUNCTION. <br/>  
 * Reason:   TODO ADD REASON. <br/>  
 * Date:     2016-3-9 下午7:49:37 <br/>  
 * @author   Administrator  
 * @version    
 * @since    JDK 1.7  
 * @see        
 */

public class ToolUtil {
	public static Page getPage(int count,int pageSize,Page p){
		p.setPageSize(pageSize); 
		p.setTotalCount(count);
		p.setTotalPage();
		return p;
	}
	public static Page getPage(int count,Page p){
		p.setPageSize(p.getPageSize());
		p.setTotalCount(count);
		p.setTotalPage();
		return p;
	}
	public static Page getPageNoTotal(int pageIndex,Page p){
		p.setPageSize(p.getPageSize());
		return p;
	}
}
  
